import request from '@/utils/request'

export function getOnlineUsers() {
  return request({
    url: '/api/auth/online-users/details',
    method: 'get'
  })
}

export function getUserProfiles() {
  return request({
    url: '/api/auth/user-profiles',
    method: 'get'
  })
}

export function analyzeUserBehavior(userId) {
  return request({
    url: `/api/auth/user-profiles/${userId}/analyze`,
    method: 'get'
  })
}

export function getUserLoginStats() {
  return request({
    url: '/api/auth/user-profiles/stats',
    method: 'get'
  })
}

export function getOnlineUsersCount() {
  return request({
    url: '/api/auth/online-users/count',
    method: 'get'
  })
} 